package com.open.capacity.paper.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.open.capacity.common.model.PaperRecordInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PaperRecordInfoDao extends BaseMapper<PaperRecordInfo> {

    int insertBatch(List<PaperRecordInfo> infoList);

    int deletePaperRecordInfo(@Param("paperId") Integer paperId, @Param("userId") Long userId);

    List<PaperRecordInfo> findPaperRecordInfo(@Param("paperId") Integer paperId, @Param("userId") Long userId);

    int updateByIds(@Param("paperId") Integer paperId, @Param("userId") Long userId, @Param("questionId") Integer questionId, @Param("optionId") Integer optionId);
}
